﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GDF_kaart_inlezen;

namespace GDF_kaart_inlezen.strategy_classes
{
    class EarthMagneticField : ReadingStrategy
    {
        public EarthMagneticField()
        {
            recordCode = "66";
        }
        
        public override void Process(string record)
        {
            counter = 0;
            String fieldValue;

            if (record.Substring(0, 2) == recordCode) record = record.Substring(2);
            fieldValue = GetFieldValue("MAGN_ID", ref record);
            //Implement processing
            fieldValue = GetFieldValue("REF_LAT", ref record);
            //Implement processing
            fieldValue = GetFieldValue("REF_LONG", ref record);
            //Implement processing
            fieldValue = GetFieldValue("DEC_DATE", ref record);
            //Implement processing
            fieldValue = GetFieldValue("DEC_VALUE", ref record);
            //Implement processing
            fieldValue = GetFieldValue("DEV_ANNUAL", ref record);
            //Implement processing
            fieldValue = GetFieldValue("HMAG_INT", ref record);
            //Implement processing
            fieldValue = GetFieldValue("VMAG_INT", ref record);
            //Implement processing
        }
    }
}
